package gui;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class Frame extends JFrame {

	

	private GuiController guiController;

	/**
	 * Create the frame.
	 */
	public Frame(GuiController guiController) {
		super("Pair Up!");
		this.guiController = guiController;
		this.setLayout(new BorderLayout());
		this.setExtendedState(Frame.MAXIMIZED_BOTH);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		initGui();

	}

	private void initGui() {
		StartPanel startPanel = new StartPanel(this, guiController);
		getContentPane().add(startPanel);
		
		
		
	}
	
	public GuiController getGuiController()
	{
		return this.guiController;
	}
	
   

}
